package com.webservice.xmloper.monitorIllegalDomain;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.thoughtworks.xstream.XStream;

public class IllegalDomainXmlOper {
	
	/**
	 * 解析基础数据监测数据上报内容xml 
	 */
	public static IdcMonitor parseIdcMonitorXml(String xmlString){
		XStream xs = new XStream();
		xs.processAnnotations(IdcMonitor.class);
		InputStream myIn=new ByteArrayInputStream(xmlString.getBytes());
		return (IdcMonitor) xs.fromXML(myIn);
	}
}
